#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import dbus
import os

os.environ['DBUS_SESSION_BUS_ADDRESS'] = 'unix:path=/var/run/dbus/system_bus_socket'

bus = dbus.SessionBus()
remote_object = bus.get_object("org.security.agent", "/org/security/agent/gui")
agent = dbus.Interface(remote_object, "org.security.agent")

reply_list = agent.getCameraList()
#agent.setCameraName('Id1','aaaaaa')
#reply_list = agent.queryMovies('','','','',0,100)

print reply_list


